var vm = new Vue({
    el: "#app",
    data: {
        searchText: '',
        searchArr: [
            "HTML基本骨架",
            "CSS层叠样式渲染",
            "JavaScript动态渲染"
        ]
    },
    methods: {
        search() {
            if (this.searchText) {

                this.searchArr.push(this.searchText);

                this.searchText = "";

            }
            
        }

    }
});